<template>
  <el-table>
    <el-table-column
      v-for="item in TableLabel"
      :key="item.prop"
      :prop="item.prop"
      :label="item.label"
    >
      <template #default="{ row }">
        <span>{{ row[item.prop] }}</span>
      </template>
    </el-table-column>
  </el-table>
</template>

<script setup>
import { reactive, ref, onMounted, getCurrentInstance } from "vue";
const TableLabel = ref([
  {
    prop: "blog_id",
    label: "博客id",
  },
  {
    prop: "blog_title",
    label: "博客标题",
  },
  {
    prop: "blog_content",
    label: "博客内容",
  },
  {
    prop: "user_id",
    label: "用户id",
  },
  {
    prop: "cover_image",
    label: "博客封面",
  },
  {
    prop: "created_at",
    label: "创建时间",
  },
  {
    prop: "updated_at",
    label: "修改时间",
  },
]);
const blogData = ref([]);
</script>

<style lang="less" scoped></style>
